<?php
$T->loadTpl("./html/".$template."/".$qname.".html");
$T->SetTpl('cssjs','html/cssjs.inc'); 
$T->SetTpl('jsmodel','html/jsmodel.inc');     
  
$uid=$_SESSION['uid'];
$p=isset($_GET["p"])?$_GET["p"]:"1";
$offset = ($p-1)*15;
$T->SetBlock("types","select id,name,odx from sys_plan_type order by odx");
$rc=$T->db->query("select count(*) from sys_plan_type")->fetchColumn(0);
if($p<1)$p=1;
$page=getPageHtml_bt($rc,15,$p,"&t=plan_sys_type");
$page=mb_convert_encoding($page, 'utf-8', 'utf-8');
$T->Set("page",$page);

$T->Set("template",$template);        
$T->clearNaN();       
$T->clearNoN();
$T->display(); 